﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace DetectWebApi.Models.DamageBuilding
{
    /// <summary>
    /// 损伤策略文档
    /// </summary>
    public class DamagePolicyDocument
    {
        /// <summary>
        /// 损伤类型ID
        /// </summary>
        [BsonElement("DamageTypeId")]
        [BsonRepresentation(BsonType.ObjectId)]
        public ObjectId DamageTypeId { set; get; }

        /// <summary>
        /// 损伤策略等级
        /// </summary>
        [BsonElement("PolicyLevel")]
        [BsonRepresentation(BsonType.Int32)]
        public int PolicyLevel { set; get; }

        /// <summary>
        /// 策略优先级
        /// </summary>
        [BsonElement("PolicyPriority")]
        [BsonRepresentation(BsonType.Int32)]
        public int PolicyPriority { set; get; }

        /// <summary>
        /// 策略描述
        /// </summary>
        [BsonElement("PolicyDesc")]
        [BsonRepresentation(BsonType.String)]
        public string PolicyDesc { set; get; }

        /// <summary>
        /// 策略开始值
        /// </summary>
        [BsonElement("StartValue")]
        [BsonRepresentation(BsonType.Double)]
        public double StartValue { set; get; }
        /// <summary>
        /// 策略结束值
        /// </summary>
        [BsonElement("EndValue")]
        [BsonRepresentation(BsonType.Double)]
        public double EndValue { set; get; }

        

    }
}
